#ifndef PHYSICSPARTICLE_H
#define PHYSICSPARTICLE_H

#include "PhysicsCalculations.h"

#include <D3D11.h>
#include <D3DX10math.h>

class PhysicsParticle
{
public:
	PhysicsParticle();
	void Update();
	void Draw();

	D3DXVECTOR3& GetPos();
	void SetPos(const D3DXVECTOR3& pos) {m_position = pos;}

	void SetMass(float m);

	void AddForce(const D3DXVECTOR3& force);

private:
	float m_mass;
	float m_inverseMass;
	D3DXVECTOR3 m_position;
	D3DXVECTOR3 m_oldPosition;
	D3DXVECTOR3 m_acceleration;
	D3DXVECTOR3 m_velocity;
	D3DXVECTOR3 m_force;

	POSCALCULATION m_posCalc;
};

#endif //PHYSICSPARTICLE_H